package com.copm.ifm.servers.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.copm.ifm.base.basic.pojo.BaseTreePO;
import com.copm.ifm.base.basic.pojo.MenuContentList;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


/**
 * 系统菜单表
 *
 * @author zzf
 * @date 2020-12-14
 */
@Getter
@Setter
@ToString
@TableName(value = "sys_menu", autoResultMap = true)
@ApiModel("系统菜单表")
public class SysMenu extends BaseTreePO {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("名称 - 繁体")
    private String ftName;

    @ApiModelProperty("名称 - 英文")
    private String enName;

    @ApiModelProperty("路径")
    private String url;

    @ApiModelProperty("图标路径")
    private String iconUrl;

    @ApiModelProperty("是否系统菜单")
    private String sysMenu;

    @ApiModelProperty("操作权限")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private MenuContentList operations;

}
